What is ASP.NET Core appsettings.json File
Defination
- The appsettings.json file is an application configuration file.
- It is used to store configuration settings of projects.
- for example database connection string.
Default Code
- Following Code is by default generated when you create project in .net core project.
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
}
Comments
Post a Comment